﻿// i did this because i thought it would be a good exercise in adding elements with js.
function InsertLogoLink() {
    // create link
    var a = document.createElement('a');
    a.setAttribute('class', 'signature');
    a.setAttribute('href', 'http://www.formsy.net');
    a.setAttribute('style', 'width:88px;height:12px;display:block;float:right;position:absolute;right:10px;');
    a.setAttribute('title', 'Powered by Formsy');
    a.setAttribute('id', 'formsyLogo');
    a.setAttribute('target', '_blank');

    // create span
    var span = document.createElement('span');
    span.setAttribute('style', 'display:none;');
    span.innerHTML = 'Powered by Formsy';
    
    // add span to link
    a.appendChild(span);

    // get containing div
    var div = document.querySelector('.formsycsv');

    // add link to containing div
    div.appendChild(a);
}

